import request from '@/utils/request'

// 查询入库申请列表
export function listInsto(query) {
    return request({
        url: '/procure/insto/list',
        method: 'get',
        params: query
    })
}

// 查询入库申请详细
export function getInsto(instoId) {
    return request({
        url: '/procure/insto/' + instoId,
        method: 'get'
    })
}

// 新增入库申请
export function addInsto(data) {
    return request({
        url: '/procure/insto',
        method: 'post',
        data: data
    })
}

// 修改入库申请
export function updateInsto(data) {
    return request({
        url: '/procure/insto',
        method: 'put',
        data: data
    })
}

// 删除入库申请
export function delInsto(instoId) {
    return request({
        url: '/procure/insto/' + instoId,
        method: 'delete'
    })
}
